<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@page isELIgnored="false" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="/css/login.css">
    <%@include file="/comm/head.jsp"%>
</head>
<body>
<div id="root">
    <card style="width: 40%;  margin:140px auto;background-color:orange ;">
        <p slot="title" style="text-align:center;font-size: 20px">
            用户登录<%-- <shiro:authenticated>已登录</shiro:authenticated>--%>
        </p>
        <i-form style="padding:50px;text-align:center"  action="${pageContext.request.contextPath}/login" method="post">
            <c:if test="${not empty loginErr}">
                <alert type="error" show-icon>${loginErr}</alert>
            </c:if>
            <form-Item>
                <i-input prefix="ios-contact" name="userCode"  placeholder="请输入用户名"  size="large"/>
            </form-Item>
            <form-Item>
                <i-input prefix="ios-lock" name="password" type="password" placeholder="请输入密码"   size="large"/>
            </form-Item>
            <form-item>
                <i-button html-type="submit"  type="error"   style="width:40%;">登    录</i-button>
            </form-item>
        </i-form>
    </card>
</div>
<script>
    new Vue({
        el:"#root"
    })
</script>
</body>
</html>
